package com.dtsz.m2.ui.model;


import com.dtsz.m2.utils.RSAEncrypt;

import java.io.Serializable;

public class PageVo implements Serializable {
    private String id;
    private String lng;
    private String lat;
    private String current = "1";
    private String size = "10";
    private String likeName;
    private String token;
    private String type;
    private String index;
    private String rsa;
    private String email;
    private String boType;
    private String clientId;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getBoType() {
        return boType;
    }

    public void setBoType(String boType) {
        this.boType = boType;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRsa() {
        return rsa;
    }

    public void setRsa(String rsa) {
        this.rsa = rsa;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLikeName() {
        return likeName;
    }

    public void setLikeName(String likeName) {
        this.likeName = likeName;
    }

    public String getCurrent() {
        return current;
    }

    public void setCurrent(String current) {
        this.current = current;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }


    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        if (!"token001".equals(token)) {
            this.token = RSAEncrypt.encrypt(token);
        } else {
            this.token = token;
        }
    }
}
